<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<link rel="stylesheet" href="../../../styles/index.css">
	<style>
		.box {
			width: 300px;
			height: 300px;
			display: flex;
			border: solid 1px crimson;
			box-sizing: border-box;
			margin: 0 10px;
		}

		.box>div {
			width: 100px;
			height: 100px;
			background-color: skyblue;
			margin: 2px;
		}

		.box>div {
			/* flex-grow: 0;
			flex-shrink: 1;
			flex-basis: 0%; */
			flex: 0;
		}

		.box.box2>div {
			/* flex-grow: 1;
			flex-shrink: 1;
			flex-basis: 0%; */
			flex: 1;
		}

		.box.box3>div {
			/* flex-grow: 1;
			flex-shrink: 1;
			flex-basis: auto */
			flex: auto;
		}

		.box.box4>div {
			/* flex-grow: 0;
			flex-shrink: 0;
			flex-basis: auto */
			flex: none;
		}
	</style>
</head>

<body>
	<div class="container flex">
		<div class="box">
			<div>box1</div>
		</div>

		<div class="box box2">
			<div>box2</div>
		</div>

		<div class="box box3">
			<div>box3</div>
		</div>

		<div class="box box4">
			<div>box4</div>
		</div>
	</div>
</body>

</html>